import {
	request
} from "@/utils/request";

// 获取用户信息
export function getUserInfo(data) {
	return request({
		url: "/user/info",
		method: "get",
		data: data,
	});
}

// 保存用户信息
export function saveProfile(data) {
	return request({
		url: "/user/profile",
		method: "post",
		data: data,
	});
}

// 保存服务商信息
export function saveCompany(data) {
	return request({
		url: "/user/saveCompany",
		method: "post",
		data: data,
	});
}

// 获取我的收藏列表
export function getStarInfo(data) {
	return request({
		url: "/user/star",
		method: "get",
		data: data,
	});
}

// 获取学校列表
export function getSchool(data) {
	return request({
		url: "/common/school",
		method: "get",
		data: data,
	});
}

// 提交意见反馈
export function saveFeedback(data) {
	return request({
		url: "/user/feedback",
		method: "post",
		data: data,
	});
}

// 用户协议
export function baseInfo(data) {
	return request({
		url: "/common/baseInfo",
		method: "get",
		data: data,
	});
}
